﻿using Microsoft.AspNetCore.Blazor;
using Microsoft.AspNetCore.Blazor.Browser.Interop;

namespace SIGBugs.Client.Libs
{
    public static class ElementRefExtensions
    {
        public static void Focus(this ElementRef elementRef)
        {
            RegisteredFunction.Invoke<object>("BlazorFocus.FocusElement", elementRef);
        }
    }
}
